package com.quanxiaoha.weblog.common.domain.dos;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 公告DO类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("t_announcement")
public class AnnouncementDO {
    @TableId(type = IdType.AUTO)
    private Long id;//id

    private String content;//内容

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;//创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE, update = "NOW()")
    private LocalDateTime updateTime;//修改时间

    @TableLogic
    private Integer isDeleted;//逻辑删除

    @TableField("is_enabled")
    private Integer isEnabled;//是否启用
}